﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;

namespace SimTank
{
    public partial class BaseMob
    {
        public BaseMob(int uid)
        {
            unitid = uid;
            GCD = new Cooldown(150, 150);
            random = new Random();
            observedTTL = new List<int[]>();
            TTLStatVector = new List<int[]>();
            DebuffList = new List<Debuff>();
            TargetDebuffList = new List<Debuff>();
            BuffList = new List<Buff>();
        }

        public void SetDefensive(int health, double dodge, double parry, double block, double miss, double mastery, int armor, int level)
        {
            this.health = health;
            this.dodge = (int)(dodge * 100);
            this.parry = (int)(parry * 100);
            this.block = (int)(block * 100);
            this.miss = (int)(miss * 100);
            this.mastery = mastery;
            this.armor = armor;
            this.level = level;
        }

        public void SetOffensive(int target, double ap, int min, int max, double crit, int swinglength)
        {
            this.target = target;
            this.crit = crit * 100;
            this.attackpower = ap;
            this.damage_min = min;
            this.damage_max = max;
            this.swinglength = swinglength;
        }

        public void SetTracking(bool track)
        {
            trackttl = track;
        }
    }
    
}